home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 November: Tool Chest / Dev.CD Nov 96 TC / Dev.CD Nov 96 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSWindow.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  2.0 KB  |  74 lines  |  [TEXT/CWIE]

  1. // MSWindow.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7.     
  8. #ifndef __MSWINDOW__
  9. #define __MSWINDOW__
  10.     
  11. #include <Memory.h>
  12. #include <Types.h>
  13. #include <Quickdraw.h>
  14. #include <Fonts.h>
  15. #include <ToolUtils.h>
  16. #include <Traps.h>
  17. #include "MSGlobals.h"
  18. #include "MSUtils.h"
  19. #include "MSAppleEvents.h"
  20.  
  21. DPtr        DPtrFromWindowPtr(WindowPtr theWindow);
  22.  
  23. void        MyGrowWindow( WindowPtr w, Point p );
  24.  
  25. void        GetPageEnds( short pageHeight, TEHandle theText,
  26.                                 PageEndsArray  pageBounds, short *nPages);
  27.  
  28. void        DoZoom( WindowPtr w, short c, Point p );
  29.  
  30. void        DoContent( WindowPtr theWindow, EventRecord theEvent );
  31.  
  32. OSErr         DoActivate(WindowPtr theWindow, Boolean activate);
  33.  
  34. void        DoUpdate( WindowPtr theWindow );
  35.  
  36. DPtr        NewDocument(Boolean isForOldDoc, WindowPtr behindWindow);
  37.  
  38. void        CloseMyWindow(WindowPtr aWindow);
  39.  
  40. void        ShowSelect( DPtr theDoc );
  41.  
  42. void        AdjustScrollbars( DPtr theDoc, Boolean needsResize );
  43.                                                      
  44. void        GetWinContentRect( WindowPtr theWindow, Rect *r );
  45.  
  46. void        ResizeWindow( DPtr theDoc );
  47.  
  48. void        ResizePageSetupForDocument( DPtr theDoc );
  49.  
  50. void        InvalidateDocument( DPtr theDoc );
  51.  
  52. void        DrawPageExtras(DPtr theDoc);
  53.  
  54. void        PrintWindow( DPtr theDoc, Boolean askUser );
  55.  
  56. pascal void VActionProc(ControlHandle control, short part);
  57.  
  58. pascal void HActionProc(ControlHandle control, short part);
  59.  
  60. void        AdjustTE( DPtr theDoc );
  61. void        AdjustHV( Boolean isVert, ControlHandle control, DPtr theDoc, Boolean canRedraw );
  62. void        AdjustScrollValues( DPtr theDoc, Boolean canRedraw );
  63. void        GetTERect( WindowPtr window, Rect *teRect );
  64. void        AdjustScrollSizes( DPtr theDoc );
  65. void        CommonAction( ControlHandle control, short *amount );
  66. void        OffsetWindow(WindowPtr aWindow);
  67. // void        GetLocalUpdateRgn( WindowPtr window, RgnHandle localRgn );
  68. void        DoBackgroundContent ( WindowPtr theWindow, EventRecord theEvent);
  69. void        DrawPageBreaks(DPtr theDoc);
  70.  
  71. void        ShowMSWindow( WindowPtr theWindow );
  72. void        HideMSWindow( WindowPtr theWindow );
  73.  
  74. #endif